]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: Fix access to undefined property
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 13 Jun 2017 04:41:08 +0000 (06:41 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Jul 2017 15:23:54 +0000 (17:23 +0200)
Don't call a parent method before chaining-up _init() to
avoid a warning about access to an undefined property.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

js/ui/calendar.js

index 32718ea6da20c72d2a95f9c3630938b0152becb5..f27c894dcbae7e377d6b84f0496702d6b76efed0 100644 (file)
@@ -761,8 +761,8 @@ const NotificationMessage = new Lang.Class({
     _init: function(notification) {
         this.notification = notification;
 
-        this.setUseBodyMarkup(notification.bannerBodyMarkup);
         this.parent(notification.title, notification.bannerBodyText);
+        this.setUseBodyMarkup(notification.bannerBodyMarkup);
 
         this.setIcon(this._getIcon());